Software Engineering


Discipline

Self-control | Order | Standards

  • Electronic Engineering.

  • Mechanical Engineering.

  • Heating Engineering.

  • Computer Science. 🌌

    • Software Engineering.



Virtues

  • Self-control | Patience.
  • Realistic.

Computers can be frustrating! 🤯

Amour of God!



Code

Not an essay

Symbols | Keywords | Statements

var x = 4;
alert("Hello");
public class Person
{
    public string Name { get; set; }
    public int Age { get; set; }
}



Code

  • class.cs
  • index.html
  • script.js

⚙️

  • Compiler.
  • Interpreter.

Output

  • game.exe
  • Run in browser.



File types

Filename|.extension

homework.docx

Markup → Presentation

  • .html
  • .xml
  • .xaml

Code ⇒ Logic

  • .js
  • .ts
  • .cs



HTML

HyperText Markup Language.



HTML

<h1>Heading 1</h1>
<p>Paragraph</p>
Some simple text <button>Say hello</button>



JavaScript

var array = [];
for (var i=0;i<10;i++) {
	array.push(i);
}
console.log(array);

F12 → Copy & Paste.



Say hello

function sayHello() {
    alert("Hello");
}
<button onclick="sayHello()">Say hello</button>



Statement

  • A single task performed in a single step of a program
  • Ends with semi-colon ; so the program knows when a statement has finished.
    • Some languages automatically determine the end.
var x = 4;
alert("Hello");



Keywords

  • Special words that the mean something to the programming language.
  • Keywords tend to be used with something else.
  • Languages have there own keywords, some common keyword:
    • var X: Create a new Variable called X.
    • return X: Return X.
    • function X: Create a new Function called X.



Operators and Operands

  • An element of a Statement that performs a task.
  • Task is performed on Operands.
  • Operators require usually two Operands.
    • Some Operators require only one.
Operand Operator Operand Meaning
2 + 2 2 plus 2
message = "Hello" Assign to a variable
Count ++ Increase a variable by 1



Function and return

  • Functions are a way of organising code.
    • We can pass data into functions.
  • Code is grouped together inside a Code Block.
    • A Code Block is Code surrounded by Curly Brackets { }.
    • We call this the Function Body.
function X() {
  return "Hello";
}
Or...
var x = () => "Hello";

function greet(name) { return "Hello " + name; }
greet("Luke");



Discover

🌌



Summary

  • Computing is a whole universe! 🌌

    • Search & learn what you don't know.
  • We've learnt the basics for programming.

  • We've learnt the importance of virtues!